<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>


<!-- Header -->
<div id="top-nav" class="navbar navbar-inverse navbar-static-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><?php echo CHtml::encode(Yii::app()->name); ?></a>
    </div>
    <div class="navbar-collapse collapse">
         <?php $this->widget('zii.widgets.CMenu',array(
	        'encodeLabel' => false,
			'items'=>array(
				array('label'=>'<i class="glyphicon glyphicon-lock"></i> login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'<i class="glyphicon glyphicon-lock"></i> Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
			'htmlOptions'=>array('class'=>'nav navbar-nav navbar-right'),
		)); ?>
    </div>
  </div><!-- /container -->
</div>
<!-- /Header -->

<!-- Main -->
<div class="container">

	<?php echo $content; ?>

</div><!-- Main -->
<footer class="text-center">Copyright &copy;<?php echo date('Y'); ?>
<?php echo CHtml::encode(Yii::app()->name); ?>
<br /> Infario .All Rights Reserved.</footer>
<?php $this->endContent(); ?>